import request from '@/utils/request'

// 查询财务核心-结转记录（年末）列表
export function listFinCarryoverRecordYear(query) {
  return request({
    url: '/carryoverRecordYear/finCarryoverRecordYear/list',
    method: 'get',
    params: query
  })
}

// 查询财务核心-结转记录（年末）详细
export function getFinCarryoverRecordYear(id) {
  return request({
    url: '/carryoverRecordYear/finCarryoverRecordYear/' + id,
    method: 'get'
  })
}

// 保存财务核心-结转记录（年末）
export function saveFinCarryoverRecordYear(data) {
  return request({
    url: '/carryoverRecordYear/finCarryoverRecordYear/save',
    method: 'post',
    data: data
  })
}

// 期末结转-结转
export function carryoverYearHandel(data) {
  return request({
    url: '/carryoverRecordYear/finCarryoverRecordYear/carryoverYearHandel',
    method: 'post',
    data: data
  })
}

// 期末结转-获取反结账查询的已经结账记录的列表
export function getCarryYearList(data) {
  return request({
    url: '/carryoverRecordYear/finCarryoverRecordYear/getCarryYearList',
    method: 'post',
    data: data
  })
}
// 期末反结账操作
export function startBackCarryoverYear(data) {
  return request({
    url: '/carryoverRecordYear/finCarryoverRecordYear/startBackCarryoverYear',
    method: 'post',
    data: data
  })
}

// 删除财务核心-结转记录（年末）
export function delFinCarryoverRecordYear(id) {
  return request({
    url: '/carryoverRecordYear/finCarryoverRecordYear/' + id,
    method: 'delete'
  })
}

// 导出财务核心-结转记录（年末）
export function exportFinCarryoverRecordYear(query) {
  return request({
    url: '/carryoverRecordYear/finCarryoverRecordYear/export',
    method: 'get',
    params: query
  })
}
